package it.univaq.di.helpdesk.business.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class Computer extends Device implements Serializable {

	private List<Device> devices;

	public Computer() {
		super();
		this.devices = new ArrayList<Device>();
	}

	public Computer(List<Device> devices) {
		super();
		this.devices = devices;
	}
	
	public void addDevice(Device device) {
		devices.add(device);	
	}
	
	public List<Device> getDevices(){
		return devices;
	}
	
	public void setDevices(List<Device> devices) {
		this.devices = devices;
	}

	@Override
	public Device getComposite() {
		return this;
	} 
}
